package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName shoppingcart
 */
@TableName(value ="shoppingcart")
@Data
public class Shoppingcart implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer goodid;

    /**
     * 商品数量
     */
    private Integer num;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 用户住址
     */
    private String useraddress;


    @TableField(exist = false)
    private String goodName;
    @TableField(exist = false)
    private String img;
    @TableField(exist = false)
    private BigDecimal price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}